/*
 * Bspline.h
 *
 *  Created on: 24/11/2009
 *      Author: leonardo
 */

#ifndef BSPLINE_H_
#define BSPLINE_H_
#include "Punto.h"
#include "Curva.h"
#include <vector>


class Bspline : public Curva {

	private:
		double blend(int k, int t, int *u, double v);
		void compute_intervals(int *u, int n, int t);
		void compute_point(int *u, int n, int t, double v,Punto &output);

	public:
		Bspline();
		void dibujarCurva();
		void dibujarCurvaRandom(Punto inicio,Punto fin);
		virtual ~Bspline();

};


#endif /* BSPLINE_H_ */
